package com.codefish.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;

/**
 * @Classname ProvinceCityCounty
 * @Description 省市区表
 * @Date 2021/4/30 20:47
 * @Created 学兔斯基眯眼看世界
 */
@Data
@TableName(value = "province_city_county")
public class ProvinceCityCounty implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId
    private Integer id;
    /**
     * 名称
     */
    private String name;
    /**
     * 父级ID,0表示没有父级
     */
    private Integer pid;
    /**
     * 1表示省，2表示市，3表示县。
     */
    private Integer type;
    /**
     * 编码
     */
    private String code;
    /**
     * 状态，默认为1
     */
    private Integer status;

    @TableField(exist = false)
    private Integer createTime;
    @TableField(exist = false)
    private Integer updateTime;

    @Override
    public String toString() {
        return "ProvinceCityCounty{" +
                ", id=" + id +
                ", name=" + name +
                ", pid=" + pid +
                ", type=" + type +
                ", code=" + code +
                ", status=" + status +
                ", createTime=" + createTime +
                ", updateTime=" + updateTime +
                "}";
    }
}

